// Efrat 2010 IO

// Load dataset
clear
use "E2010 IO Rep Data.dta"

// REPLICATION
keep in 1/118
summarize
display c(k)
mdesc
tabmiss
codebook country
gen eloggdp = exp(loggdp)
summarize

// Table 1
// Model 1
ologit strength soind prind polity refugees loggdp sharehumaid06 comlaw
mdesc strength soind prind polity refugees loggdp sharehumaid06 comlaw
codebook country if e(sample)

// Model 2
ologit scope soind prind polity refugees loggdp sharehumaid06 comlaw
mdesc scope soind prind polity refugees loggdp sharehumaid06 comlaw
codebook country if e(sample)

// Model 3
ologit transparency soind prind polity refugees loggdp sharehumaid06 comlaw
mdesc transparency soind prind polity refugees loggdp sharehumaid06 comlaw
codebook country if e(sample)

// Model 4
ologit strength soind prind polity newhomicide loggdp sharehumaid06 comlaw
mdesc strength soind prind polity newhomicide loggdp sharehumaid06 comlaw
codebook country if e(sample)

// Model 5
ologit scope soind prind polity newhomicide loggdp sharehumaid06 comlaw
mdesc scope soind prind polity newhomicide loggdp sharehumaid06 comlaw
codebook country if e(sample)

// Model 6
ologit transparency soind prind polity newhomicide loggdp sharehumaid06 comlaw
mdesc transparency soind prind polity newhomicide loggdp sharehumaid06 comlaw
codebook country if e(sample)

// IMPUTATION
clear
use "E2010 IO Imp Data.dta"
summarize

mi import flong, m(imp) id(case country) imp(strength-logarmstrade)

// Table 1
// Model 1
mi estimate, post: ologit strength soind prind polity refugees loggdp sharehumaid06 comlaw

// Model 2
mi estimate, post: ologit scope soind prind polity refugees loggdp sharehumaid06 comlaw

// Model 3
mi estimate, post: ologit transparency soind prind polity refugees loggdp sharehumaid06 comlaw

// Model 4
mi estimate, post: ologit strength soind prind polity newhomicide loggdp sharehumaid06 comlaw

// Model 5
mi estimate, post: ologit scope soind prind polity newhomicide loggdp sharehumaid06 comlaw

// Model 6
mi estimate, post: ologit transparency soind prind polity newhomicide loggdp sharehumaid06 comlaw
